#ifndef _GRAY_SENSOR_H_
#define _GRAY_SENSOR_H_
#include <Arduino.h>
class gray_cs
{
private:
    const int left_pin = A2;
    const int right_pin = A4;

public:
    int sensor1 = 0;
    int sensor2 = 0;
    int he_error = 0;
    int cha_error = 0;
    float error = 0;
    void adc_loadvalue()
    {
        sensor1 = analogRead(left_pin);
        sensor2 = analogRead(right_pin);
        Serial.println("s1:");
        Serial.println(sensor1);
        Serial.println("s2:");
        Serial.println(sensor2);
        }
};
#endif